package syscontrollers

import (
	"myadmin/sys/session"
	"myadmin/sys/syscontrollers/syscommon"
)

type UserLogout struct {
	syscommon.BaseController
}

func (c *UserLogout) URLMapping() {
	c.Mapping("Post", c.Post)

}
// @Title 退出
// @Description 退出
// @Success 200 {json} 创建成功
// @Failure 500 {json} 创建失败
// @router /info [post]

func(c *UserLogout) Post(){
	token := c.Ctx.Input.Header("Authorization")
	session.Ses.Del(token)
	c.JsonRep200("退出成功")

}
